package com.dg.lecheng.api.user.repo;

import com.dg.lecheng.api.base.repo.ApiRepository;
import com.dg.lecheng.api.user.model.InfoUserRole;
import com.dg.lecheng.base.core.repo.CrudRepo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 由MyBatis Generator工具自动生成，请不要手动修改
 */
@ApiRepository
public interface InfoUserRoleDao extends CrudRepo<InfoUserRole, Integer> {
    public List<InfoUserRole> getList();

    public int getCount();

    public List<InfoUserRole> getByUserId(Integer userId);

    public InfoUserRole getByUserIdAndRoleId(InfoUserRole infoUserRole);

    public void removeByUserId(int userId);

    public void removeByRoleId(int roleId);

    public String getRoleName(@Param("userId") int userId);
}
